<?php


namespace App\Http\Service;


use Illuminate\Support\Facades\DB;

class MessageService
{
    public static function message($from, $to, $type, $target)
    {
        DB::table('media_message')->insert(['from'=>$from, 'to'=>$to,'type'=>$type ,'target'=>$target, 'is_read'=>0, 'created_at'=>date('Y-m-d H:i:s')]);
    }
}